<link type="text/css" href="/topjui/css/myui.css" rel="stylesheet"/>
<form id="search_form" method="post" style="padding-top:1px">
    <input type="hidden" id="id" name="id" value="0">
    <table class="editTable">
        <tr>
            <td class="label">开始时间</td>
            <td>
                <input type="text" id="form-starttime" name="start"  class="inputp" data-options="required:false" style="width: 211px;">
            </td>
        </tr>
        <tr>
            <td class="label">结束时间</td>
            <td>
                <input type="text" id="form-endtime" name="end"  class="inputp" data-options="required:false" style="width: 211px;">
            </td>
        </tr>
    </table>
</form>
<script>
    $(function () {
        $('#form-starttime').datebox({
            formatter: function (date) {
                var y = date.getFullYear();
                var m = date.getMonth() + 1;
                var d = date.getDate();
                var h = date.getHours();
                var i = date.getMinutes();
                var s = date.getSeconds();
                return y + '-' + (m < 10 ? '0' + m : m) + '-' + (d < 10 ? '0' + d : d) + ' ' + (h < 10 ? '0' + h : h) + ':' + (i < 10 ? '0' + i : i) + ':' + (s < 10 ? '0' + s : s);
            }
        });

        $('#form-stoptime').datebox({
            formatter: function (date) {
                var y = date.getFullYear();
                var m = date.getMonth() + 1;
                var d = date.getDate();
                var h = date.getHours();
                var i = date.getMinutes();
                var s = date.getSeconds();
                y + '-' + (m < 10 ? '0' + m : m) + '-' + (d < 10 ? '0' + d : d) + ' ' + (h < 10 ? '0' + h : h) + ':' + (i < 10 ? '0' + i : i) + ':' + (s < 10 ? '0' + s : s);
            }
        });

        $(".combo-text").removeAttr("style");
        $(".combo-text").attr("style", "width: 220px;height: 32px;;line-height:32px");
        $(".combo-text").addClass("selectp");
        $(".combo-arrow").attr("style", "margin-left: -20px;margin-top: 5px;background-color:rgba(0,0,0,0)");
        $(".combo-panel").attr("style", "margin-top:10px;");
    })

</script>